package p5sameWord;

import java.util.HashMap;
import java.util.Map;

/**
 * 存储同义词的
 */
public class SimpleSameWordContext implements SameWordContext{
    Map<String,String[]> map=new HashMap<String,String[]>();

    public SimpleSameWordContext() {
        map.put("i",new String[]{"my"});
        map.put("china",new String[]{"dalu","tianchao"});
    }

    public String[] getSameWords(String name) {
        return map.get(name);
    }
}
